package com.traveldesign.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.traveldesign.entity.Post;
import com.traveldesign.entity.User;
import com.traveldesign.mapper.PostMapper;
import com.traveldesign.service.IPostService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 帖子信息 服务实现类
 * </p>
 *
 * @author wangwang
 * @since 2025-02-27
 */
@Service
public class PostServiceImpl extends ServiceImpl<PostMapper, Post> implements IPostService {

    @Resource
    private  PostMapper postMapper;
    @Override
    public IPage pageC(IPage<Post> page) {
        return postMapper.pageC(page);
    }

    @Override
    public IPage pageCC(Page<Post> page, Wrapper wrapper) {
        return postMapper.pageCC(page,wrapper);
    }
}
